package engine.newUi
{
	import engine.control.loading.MultLoader;
	import engine.control.loading.NxLoading;
	import engine.ui.lite.BaseUI;
	
	import flash.display.DisplayObjectContainer;
	import flash.display.MovieClip;
	
	import newx.StageInfo;
	import newx.com.control.NxClip;
	import newx.com.control.button.NxButton;
	import newx.com.control.text.NxLabel;
	import newx.com.control.text.NxText;
	
	public class VipUI extends BaseUI
	{
		public static var _self	:VipUI ; 
		public 			var btn		:NxButton ; 
//		public 			var viplevel:NxLabel; 
		public 			var vipexe:NxLoading  ; 
		public			var text	:NxText   ;
//		public			var control:MovieClip ; 
		public			var viplabel:NxLabel ; 
		public			var vipprice:NxLabel ; 
		public			var tipvip:NxLabel ; 
		public 			var leftbtn:NxButton;  
		public			var rightbtn:NxButton ; 
		public			var page:NxLabel  ;
		public			var vipImage:NxClip ;
		public			var vip1:MovieClip;
//		public			var bnt3:MovieClip; 
		public			var label_1:NxLabel ; 
//		public			var label_3:NxLabel ; 
//		public			var pagemax:NxLabel ; 
		
		public			var text_2:NxText; 
//		public			var line:MovieClip;
//		public			var label_9:NxLabel; 
		public			var backmc:NxClip;
		
		//  yangcg
		public static function getInstence():VipUI
		{
			if(_self==null)
			{
				_self=new VipUI() ; 
			}
			return  _self ; 
		}
		override public function show(space:DisplayObjectContainer=null, onshow:Function=null, ...argc):void
		{
			if(!MultLoader.getInstance().getSourceByUrl(StageInfo.swfResPath + "vip.swf"))
			{
				MultLoader.getInstance().load([StageInfo.swfResPath + "vip.swf"],true,createBack);
			}else
			{
				createBack();
			}
		}
		public function createBack():void
		{
			super.show();
		}
		public function VipUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override public function  Init():void
		{
			VipLogic.getInstence().Init(); 
		}
		override protected function	BeforeShow():void
		{
			
			VipLogic.getInstence().BeforeShow();
		}
		override protected function	AfterHide():void
		{
			VipLogic.getInstence().AfterHide();
		}
	}
}